package com.zhuhanpeng.cloud.file.entity;


import java.io.Serializable;
import java.util.Arrays;

public class SearchFileInfoEntity implements Serializable {
    private String fileName;
    private String fileSize;
    private String[] fileNameArray =null;
    private String[] fileSizeArray =null;

    public void deal(){
        if(fileName !=null && !"".equals(fileName)){
            fileNameArray = fileName.split(",");
        }
        if(fileSize !=null && !"".equals(fileSize)){
            fileSizeArray = fileSize.split(",");
        }
    }

    public String getFileName() {
        return fileName;
    }

    public void setFileName(String fileName) {
        this.fileName = fileName;
    }

    public String getFileSize() {
        return fileSize;
    }

    public void setFileSize(String fileSize) {
        this.fileSize = fileSize;
    }

    public String[] getFileNameArray() {
        return fileNameArray;
    }

    public void setFileNameArray(String[] fileNameArray) {
        this.fileNameArray = fileNameArray;
    }

    public String[] getFileSizeArray() {
        return fileSizeArray;
    }

    public void setFileSizeArray(String[] fileSizeArray) {
        this.fileSizeArray = fileSizeArray;
    }

    @Override
    public String toString() {
        return "SearchFileInfoEntity{" +
                "fileName='" + fileName + '\'' +
                ", fileSize='" + fileSize + '\'' +
                '}';
    }
}
